import request from '@/utils/request'
import requesta from '@/utils/requesta'
// 查询【请填写功能名称】列表
export function WmKeyDevicesBinding(query) {
  return request({
    url: '/mes/wm/WmKeyDevicesBinding/list',
    method: 'get',
    params: query
  })
}
// 绑定
export function binding(data) {
  return request({
    url: '/mes/wm/WmKeyDevicesBinding/binding',
    method: 'post',
    data: data
  })
}
// 生成批次号
export function addWmKeyDevicesBinding(data) {
  return request({
    url: '/mes/wm/WmKeyDevicesBinding',
    method: 'post',
    data: data
  })
}
// 获取序列号接口
export function getSerialList(bachcode) {
  return request({
    url: `/mes/wm/WmKeyDevicesBinding/${bachcode}`,
    method: 'get'
  })
}
// 打印批次号
export function printBatchCode(data) {
  return requesta({
    url: '/hici/print/wmKeyDevice', //'/mes/pro/workorderSn/print',
    method: 'post',
    data: data
  })
}